﻿<phone:PhoneApplicationPage xmlns:my="clr-namespace:Microsoft.Phone.Controls.Maps;assembly=Microsoft.Phone.Controls.Maps"  
    x:Class="_4SQ.PanoramaPage1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:primitives="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows"

    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait"  Orientation="Portrait"
    shell:SystemTray.IsVisible="False">
	<phone:PhoneApplicationPage.Resources>
		<DataTemplate x:Key="ItemTemplate">
			<Grid Height="173" Margin="12,0,12,12">
				<!--<Rectangle Width="173" HorizontalAlignment="Left" Fill="{StaticResource PhoneInactiveBrush}" DataContext="{Binding photo}"/>
                -->
                <Image toolkit:TiltEffect.IsTiltEnabled="True" Width="173" HorizontalAlignment="Left" Source="{Binding photo}" />
                <StackPanel Margin="187,-4,0,0" VerticalAlignment="Top" >
                    <TextBlock Padding="0,3,0,0" FontFamily="{StaticResource PhoneFontFamilyLight}" FontSize="{StaticResource PhoneFontSizeExtraLarge}" Foreground="{StaticResource PhoneForegroundBrush}" TextWrapping="Wrap" LineStackingStrategy="BlockLineHeight" LineHeight="43" Margin="0,0,0,5" >
                        <Run Text="{Binding firstName}" />
                        <LineBreak />
                        <Run Text="{Binding lastName}" />
                    </TextBlock> 
                    <TextBlock Text="{Binding homeCity}" Opacity="0.65" FontSize="{StaticResource PhoneFontSizeSmall}" Foreground="{StaticResource PhoneForegroundBrush}" FontFamily="{StaticResource PhoneFontFamilyNormal}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                </StackPanel>
			</Grid>
		</DataTemplate>
    </phone:PhoneApplicationPage.Resources>

    <!--LayoutRoot contains the root grid where all other page content is placed-->
    <Grid x:Name="LayoutRoot">
        <controls:Panorama Title="4Square">

            <controls:PanoramaItem x:Name="gocheck" Header="checkin">
                <Grid>
                    
                    
                 </Grid>
            </controls:PanoramaItem>

        <controls:PanoramaItem x:Name="checkins" Header="old checkins">
                <Grid>
                    <ListBox Name="oldCheckins" ItemsSource="{Binding PastCheckins}">
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                <StackPanel>
                                    <TextBlock Tag="{Binding venue.id}" toolkit:TiltEffect.IsTiltEnabled="True" Text="{Binding venue.name}" Padding="0,3,0,0" FontFamily="{StaticResource PhoneFontFamilyLight}" FontSize="{StaticResource PhoneFontSizeExtraLarge}" Foreground="{StaticResource PhoneForegroundBrush}" TextWrapping="Wrap" FontWeight="ExtraBold" LineStackingStrategy="BlockLineHeight" LineHeight="43" Margin="0,0,0,5" />
                                    <TextBlock toolkit:TiltEffect.SuppressTilt="True" Text="{Binding venue.location.address}" Opacity="0.65" FontSize="{StaticResource PhoneFontSizeMedium}" Foreground="{StaticResource PhoneForegroundBrush}" FontFamily="{StaticResource PhoneFontFamilyNormal}" HorizontalAlignment="Left" VerticalAlignment="Top" />
                                    <TextBlock toolkit:TiltEffect.SuppressTilt="True">
                                        <Run Text="Likes: " FontWeight="Bold" />
                                        <Run Text="{Binding response.checkins.venue.likes.count}" />
                                        
                                        <Run Text=" Comments: " FontWeight="Bold" />
                                        <Run Text="{Binding comments.count}" />
                                        
                                        <Run x:Name="tipcount" Text=" Tip Count: " FontWeight="Bold" />
                                        <Run Text="{Binding venue.stats.tipCount}" />
                                        <LineBreak />
                                   </TextBlock>
                                </StackPanel>
                            </DataTemplate>
                        </ListBox.ItemTemplate>
                    </ListBox>
                </Grid>
            </controls:PanoramaItem>

            <controls:PanoramaItem x:Name="friendslist" Header="friends" DataContext="{Binding Source={StaticResource Friends}}">
                <Grid>
                	<ListBox Name="TheFriend" ItemTemplate="{StaticResource ItemTemplate}" ItemsSource="{Binding Collection}"/>
                </Grid>
            </controls:PanoramaItem>
        </controls:Panorama>
    </Grid>

    <!--Panorama-based applications should not show an ApplicationBar-->
    <!--
                   <Image Width="173" HorizontalAlignment="Left" Source="{Binding photo}" />
                   
                   <TextBlock x:Name="txtFirstname" Height="62" Margin="154,0,8,0" TextWrapping="Wrap" Text="LANCE" VerticalAlignment="Top" FontWeight="Bold" FontSize="45.333" d:IsHidden="True"/>
                   
                    <Image x:Name="imgPhoto" HorizontalAlignment="Left" Height="119" Margin="8,8,0,0" VerticalAlignment="Top" Width="129" Source="/ApplicationIcon.png" Stretch="Fill"/>
                    
                    <TextBlock x:Name="txtLastname" Height="53" Margin="154,35,8,0" TextWrapping="Wrap" Text="SEIDMAN" VerticalAlignment="Top" FontWeight="Bold" FontSize="32" d:IsHidden="True"/>
                    
                    <ListBox DataContext="{Binding Source={StaticResource profileData}}" ItemTemplate="{StaticResource ItemTemplate2}" ItemsSource="{Binding Collection}" Margin="154,46,0,0" FontWeight="Bold" FontSize="32" VerticalAlignment="Top"/>
                    <TextBlock x:Name="txtLocalcity" Height="25" Margin="154,102,8,0" TextWrapping="Wrap" Text="LAS VEGAS, NV" VerticalAlignment="Top"/>
                    <RichTextBox x:Name="txtMybio" Margin="-4,131,8,0" TextOptions.TextHintingMode="Fixed" AcceptsReturn="False" FontFamily="Segoe WP Light" Height="89" VerticalAlignment="Top" IsReadOnly="True" d:IsHidden="True">
                        <Paragraph>
                            <Run Text="I'm a computer programmer, I.T. Professional and overall computer enthusiast in Las Vegas, NV."/>
                        </Paragraph>
                    </RichTextBox>
                    <ListBox DataContext="{Binding Source={StaticResource profileData}}" ItemTemplate="{StaticResource ItemTemplate1}" ItemsSource="{Binding Collection}" Margin="8,136,8,0" Height="84" VerticalAlignment="Top"/>
                    <TextBlock x:Name="lblBadges" Margin="45,244,0,213" TextWrapping="Wrap" Text="badges" HorizontalAlignment="Left" Width="96" FontWeight="Bold" FontSize="26.667"/>
                    <TextBlock x:Name="txtBadgesAmount" HorizontalAlignment="Left" Height="27" Margin="71,0,0,186" TextWrapping="Wrap" Text="{Binding badges}" VerticalAlignment="Bottom" Width="42" FontWeight="Bold"/>
                    <TextBlock x:Name="lblMayorships" Margin="0,244,46,213" TextWrapping="Wrap" Text="mayorships" FontWeight="Bold" FontSize="26.667" HorizontalAlignment="Right" Width="149"/>
                    <TextBlock x:Name="txtMayorCount" Height="27" Margin="0,0,100,186" TextWrapping="Wrap" Text="100" VerticalAlignment="Bottom" FontWeight="Bold" RenderTransformOrigin="0.748,0.669" HorizontalAlignment="Right" Width="42"/>
                    <TextBlock x:Name="lblCheckins" Margin="34,0,0,118" TextWrapping="Wrap" Text="checkins" FontWeight="Bold" FontSize="26.667" HorizontalAlignment="Left" Height="41" VerticalAlignment="Bottom" Width="117"/>
                    <TextBlock x:Name="txtCheckinamount" HorizontalAlignment="Left" Height="27" Margin="71,0,0,91" TextWrapping="Wrap" Text="100" VerticalAlignment="Bottom" Width="42" FontWeight="Bold" RenderTransformOrigin="1.487,0.451"/>
                    <TextBlock x:Name="lblNotifications" Margin="0,0,27,118" TextWrapping="Wrap" Text="notifications" FontWeight="Bold" FontSize="26.667" Height="41" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="168"/>
                    <TextBlock x:Name="txtNotificationamount" HorizontalAlignment="Right" Height="27" Margin="0,0,100,91" TextWrapping="Wrap" Text="100" VerticalAlignment="Bottom" Width="42" FontWeight="Bold"/>
					-->

</phone:PhoneApplicationPage>